﻿<%@ Page Language="C#" MasterPageFile="~/provider/TravelInsurance/TravelInsurance.master"
    AutoEventWireup="true" CodeFile="ViewProviderTIAreaCountry.aspx.cs" Inherits="Provider_TravelInsurance_ViewProviderTIAreaCountry" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="provider_inner">
        <h1>
            Area/Region - Country
        </h1>
        <fieldset>
            <dl>
                <dt>
                    <label>
                        Type of policy</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlPolicyType" runat="server" class="text" Width="145px" AutoPostBack="true"
                        OnSelectedIndexChanged="GetPlans">
                        <asp:ListItem Selected="True" Value="-1">Select</asp:ListItem>
                        <asp:ListItem Value="Individual">Individual</asp:ListItem>
                        <asp:ListItem Value="IndividualSpouse">Individual + Spouse</asp:ListItem>
                        <asp:ListItem Value="IndividualChild">Individual + Child</asp:ListItem>
                        <asp:ListItem Value="Family">Family</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvPolicy" runat="server" ErrorMessage="*" ControlToValidate="ddlPolicyType"
                        InitialValue="-1"></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Plan Name</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlPlanName" runat="server" class="text" Width="145px" AutoPostBack="true"
                        OnSelectedIndexChanged="CheckAreaCountry">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvPlanName" runat="server" ErrorMessage="*" ControlToValidate="ddlPlanName"
                        InitialValue="-1"></asp:RequiredFieldValidator>
                    <asp:Label ID="lblTAId" runat="server" Text="0" Visible="false"></asp:Label>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Area/Region</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlAreaRegion" runat="server" class="text" Width="145px" AutoPostBack="true"
                        OnSelectedIndexChanged="LoadCountriesOnSelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:LinkButton ID="lnkShowCountries" runat="server" CausesValidation="false" Text="show countries"
                        OnClick="ShowCountries"></asp:LinkButton>
                </dd>
            </dl>
        </fieldset>
        <asp:Panel ID="pnlArea" runat="server" Visible="false">
            <asp:LinkButton ID="lnkbtnSelectAll" runat="server" CausesValidation="false" Text="select all countries"
                OnClick="SelectAllCountries"></asp:LinkButton>
            <asp:CheckBoxList ID="cblCountries" runat="server">
            </asp:CheckBoxList>
            <dl>
                <dt>
                    <label>
                        Auth Code</label></dt>
                <dd>
                    <asp:TextBox ID="txtAuthCode" runat="server" TextMode="Password" MaxLength="12" Width="150px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvAuthCode" runat="server" ControlToValidate="txtAuthCode"
                        ErrorMessage="Enter auth code."></asp:RequiredFieldValidator>
                </dd>
            </dl>
        </asp:Panel>
        <fieldset class="action">
            <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
                ID="ibtBack" runat="server" CssClass="left_btn" ImageUrl="~/Provider/images/buttons/back1.gif"
                OnClick="ibtBack_Click" />
            <asp:ImageButton ID="ibtSubmit" runat="server" CssClass="float_btn" ImageUrl="~/Provider/images/buttons/submit1.gif"
                OnClick="ibtSubmit_Click" />
        </fieldset>
        <asp:Label ID="lblMessage" runat="server" CssClass="successmsg"></asp:Label>
    </div>
</asp:Content>
